/* ==========================================================
   Outcomes Page 2 - Section 2: The ROI Gap
   File: wwwroot/css/outcome2-roi-gap.css
   Used by: Views/Partials/blocklist/Components/outcomeTwoRoiGapBlock.cshtml
   Fluid layout: same scaling as the other Outcome blocks
   (6.8vw gutter, vw sizes with clamp() minimums/maximums).
   ========================================================== */
.oc2-gap {
  --gap-navy: #1b2a5b;
  --gap-orange: #ff9a45;
  --gap-gutter: 6.8vw;
  --gap-ease: cubic-bezier(.65, 0, .35, 1);
  --gap-ease-out: cubic-bezier(.16, 1, .3, 1);

  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: clamp(600px, 54.6vw, 1400px);
  overflow: hidden;
  background: #142247;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}
.oc2-gap *, .oc2-gap *::before, .oc2-gap *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- Background (video or image) + overlay ---------- */
.oc2-gap__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.oc2-gap__video {
  pointer-events: none;   /* no controls, never clickable */
}
.oc2-gap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 18, 42, .62) 0%, rgba(10, 18, 42, .38) 42%, rgba(10, 18, 42, .12) 100%),
    linear-gradient(to top, rgba(10, 18, 42, .35) 0%, rgba(10, 18, 42, 0) 40%);
  pointer-events: none;
}

/* ---------- Layout ---------- */
.oc2-gap__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 51.4vw;
  gap: 3vw;
  min-height: inherit;
  padding: clamp(40px, 5.2vw, 134px) var(--gap-gutter) clamp(40px, 4.4vw, 114px);
}
.oc2-gap__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding-top: clamp(4px, .6vw, 16px);
}

.oc2-gap__eyebrow {
  margin-bottom: clamp(10px, .9vw, 24px);
  font-size: clamp(10px, .72vw, 18px);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
}
.oc2-gap__heading {
  max-width: 32vw;
  margin-bottom: clamp(10px, .7vw, 18px);
  font-size: clamp(22px, 1.95vw, 50px);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.oc2-gap__lead {
  max-width: 29vw;
  font-family: "DM Sans", "Poppins", sans-serif;
  font-size: clamp(14px, 1.25vw, 32px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
}

/* Huge gradient number */
.oc2-gap__big {
  font-size: clamp(88px, 11.6vw, 300px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, #d7dbff 0%, #ece4f4 45%, #fde1cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

/* ---------- Right column ---------- */
.oc2-gap__right {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, .6vw, 16px);
}

/* Stat card */
.oc2-gap__stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 3vw, 78px);
  margin-bottom: clamp(4px, .5vw, 12px);
  padding: clamp(20px, 2.2vw, 56px) clamp(20px, 2vw, 52px);
  background: linear-gradient(100deg, #ffffff 0%, #fdf0e6 50%, #fcd9bd 100%);
  color: var(--gap-navy);
}
.oc2-gap__stat-num {
  font-size: clamp(34px, 3.3vw, 86px);
  font-weight: 600;
  line-height: 1;
  color: var(--gap-navy);
  font-variant-numeric: tabular-nums;
}
.oc2-gap__stat-text {
  margin-bottom: clamp(8px, .8vw, 20px);
  font-size: clamp(15px, 1.25vw, 32px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--gap-navy);
}
.oc2-gap__stat-source {
  font-family: "DM Sans", "Poppins", sans-serif;
  font-size: clamp(11px, .7vw, 18px);
  line-height: 1.6;
  color: var(--gap-navy);
}
.oc2-gap__stat-source strong { font-weight: 700; }

/* ---------- Accordion ---------- */
.oc2-gap__item {
  background: rgba(150, 150, 155, .42);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  transition: background-color .5s var(--gap-ease), color .5s var(--gap-ease), border-color .5s ease;
}
.oc2-gap__item:hover { background: rgba(165, 165, 170, .52); }
.oc2-gap__item.is-open {
  background: #fff;
  border-color: #fff;
  color: var(--gap-navy);
}

.oc2-gap__trigger {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 42px);
  width: 100%;
  min-height: 44px;
  padding: clamp(14px, 1.45vw, 38px) clamp(16px, 1.45vw, 38px);
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.oc2-gap__trigger:focus-visible { outline: 2px solid var(--gap-orange); outline-offset: -4px; }
.oc2-gap__num {
  flex: none;
  min-width: 2ch;
  font-size: clamp(11px, .75vw, 19px);
  font-weight: 500;
  opacity: .85;
}
.oc2-gap__title {
  flex: 1;
  font-size: clamp(14px, 1.1vw, 28px);
  font-weight: 600;
  line-height: 1.35;
}

/* plus / minus */
.oc2-gap__icon {
  position: relative;
  flex: none;
  width: clamp(10px, .7vw, 18px);
  height: clamp(10px, .7vw, 18px);
}
.oc2-gap__icon::before,
.oc2-gap__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .5s var(--gap-ease), opacity .3s ease;
}
.oc2-gap__icon::after { transform: rotate(90deg); }
.oc2-gap__item.is-open .oc2-gap__icon::after { transform: rotate(0deg); opacity: 0; }

/* smooth height (grid-rows trick) */
.oc2-gap__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--gap-ease);
}
.oc2-gap__item.is-open .oc2-gap__panel { grid-template-rows: 1fr; }
.oc2-gap__panel > div { overflow: hidden; }
.oc2-gap__text {
  padding: 0 clamp(16px, 1.45vw, 38px) clamp(16px, 1.6vw, 42px) calc(clamp(16px, 1.45vw, 38px) + 2ch + clamp(14px, 1.6vw, 42px));
  font-family: "DM Sans", "Poppins", sans-serif;
  font-size: clamp(13px, .9vw, 23px);
  line-height: 1.65;
  color: var(--gap-navy);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.oc2-gap__item.is-open .oc2-gap__text {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease .2s, transform .6s var(--gap-ease-out) .2s;
}

/* ---------- Entrance (only when JS has run) ---------- */
.oc2-gap.js-reveal .oc2-gap__left > *,
.oc2-gap.js-reveal .oc2-gap__right > * { opacity: 0; transform: translateY(24px); }
.oc2-gap.js-reveal.is-visible .oc2-gap__left > *,
.oc2-gap.js-reveal.is-visible .oc2-gap__right > * {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform 1s var(--gap-ease-out), background-color .5s var(--gap-ease), color .5s var(--gap-ease);
}
.oc2-gap.js-reveal.is-visible .oc2-gap__right > :nth-child(2) { transition-delay: .1s, .1s, 0s, 0s; }
.oc2-gap.js-reveal.is-visible .oc2-gap__right > :nth-child(3) { transition-delay: .18s, .18s, 0s, 0s; }
.oc2-gap.js-reveal.is-visible .oc2-gap__right > :nth-child(4) { transition-delay: .26s, .26s, 0s, 0s; }
.oc2-gap.js-reveal.is-visible .oc2-gap__right > :nth-child(5) { transition-delay: .34s, .34s, 0s, 0s; }
.oc2-gap.js-reveal.is-visible .oc2-gap__left > :nth-child(2) { transition-delay: .25s, .25s; }

/* ---------- SMALL LAPTOP / TABLET ---------- */
@media (max-width: 1200px) {
  .oc2-gap { --gap-gutter: 32px; }
  .oc2-gap__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; }
  .oc2-gap__heading, .oc2-gap__lead { max-width: none; }
}

/* ---------- TABLET PORTRAIT & MOBILE: stack ---------- */
@media (max-width: 900px) {
  .oc2-gap { --gap-gutter: 24px; min-height: 0; }
  .oc2-gap::before { background: rgba(10, 18, 42, .55); }
  .oc2-gap__inner { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; padding-bottom: 56px; }
  .oc2-gap__left { gap: 20px; }
  .oc2-gap__heading, .oc2-gap__lead { max-width: 640px; }
  .oc2-gap__big { font-size: clamp(80px, 24vw, 140px); }
}

@media (max-width: 560px) {
  .oc2-gap { --gap-gutter: 20px; }
  .oc2-gap__stat { grid-template-columns: 1fr; gap: 10px; }
  .oc2-gap__text { padding-left: clamp(16px, 1.45vw, 38px); }
}

@media (prefers-reduced-motion: reduce) {
  .oc2-gap *, .oc2-gap *::before, .oc2-gap *::after { transition: none !important; }
  .oc2-gap.js-reveal .oc2-gap__left > *,
  .oc2-gap.js-reveal .oc2-gap__right > * { opacity: 1; transform: none; }
}